<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>中共一大历史知识</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Microsoft YaHei', sans-serif;
        }
        
        body {
            background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
            min-height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            padding: 20px;
            color: #333;
        }
        
        .container {
            width: 100%;
            max-width: 500px;
            background-color: white;
            border-radius: 20px;
            box-shadow: 0 15px 30px rgba(0, 0, 0, 0.15);
            overflow: hidden;
            position: relative;
        }
        
        .header {
            background: linear-gradient(135deg, #b71c1c 0%, #d32f2f 100%);
            color: white;
            text-align: center;
            padding: 30px 20px;
            position: relative;
            overflow: hidden;
        }
        
        .header::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="none"><polygon points="0,0 100,0 100,100" fill="rgba(0,0,0,0.05)"/></svg>');
            background-size: 100% 100%;
        }
        
        .header h1 {
            font-size: 26px;
            margin-bottom: 15px;
            position: relative;
            z-index: 1;
            text-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }
        
        .header p {
            font-size: 16px;
            opacity: 0.9;
            position: relative;
            z-index: 1;
        }
        
        .content {
            padding: 30px 25px;
        }
        
        .question-card {
            background-color: #f9f9f9;
            border-radius: 15px;
            padding: 25px;
            margin-bottom: 25px;
            box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
            border: 1px solid #eee;
            position: relative;
        }
        
        .question-card h2 {
            color: #b71c1c;
            font-size: 22px;
            margin-bottom: 20px;
            text-align: center;
        }
        
        .input-group {
            display: flex;
            justify-content: center;
            align-items: center;
            gap: 10px;
            margin-bottom: 20px;
            flex-wrap: wrap;
        }
        
        .input-field {
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        
        .input-field label {
            margin-bottom: 8px;
            font-weight: bold;
            color: #555;
        }
        
        .input-field input {
            width: 80px;
            height: 50px;
            border: 2px solid #ddd;
            border-radius: 10px;
            text-align: center;
            font-size: 22px;
            font-weight: bold;
            color: #b71c1c;
            transition: all 0.3s;
        }
        
        .input-field input:focus {
            border-color: #d32f2f;
            outline: none;
            box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.2);
        }
        
        .btn-submit {
            background: linear-gradient(135deg, #b71c1c 0%, #d32f2f 100%);
            color: white;
            border: none;
            padding: 15px 30px;
            border-radius: 10px;
            font-size: 18px;
            font-weight: bold;
            cursor: pointer;
            transition: all 0.3s;
            box-shadow: 0 5px 15px rgba(183, 28, 28, 0.3);
            width: 100%;
            max-width: 300px;
            margin: 10px auto;
            display: block;
        }
        
        .btn-submit:hover {
            transform: translateY(-3px);
            box-shadow: 0 8px 20px rgba(183, 28, 28, 0.4);
        }
        
        .btn-submit:active {
            transform: translateY(1px);
        }
        
        .info-section {
            background-color: #f9f9f9;
            border-radius: 15px;
            padding: 25px;
            margin-top: 20px;
            display: none;
            border-left: 5px solid #d32f2f;
            animation: fadeIn 0.8s ease-out;
        }
        
        .info-section h3 {
            color: #b71c1c;
            font-size: 22px;
            margin-bottom: 15px;
            display: flex;
            align-items: center;
        }
        
        .info-section h3 i {
            margin-right: 10px;
        }
        
        .info-section p {
            line-height: 1.8;
            font-size: 16px;
            text-align: justify;
            color: #444;
        }
        
        .info-section p:not(:last-child) {
            margin-bottom: 15px;
        }
        
        .error-message {
            color: #d32f2f;
            text-align: center;
            font-weight: bold;
            margin-top: 15px;
            display: none;
            animation: shake 0.5s;
        }
        
        .history-icon {
            display: flex;
            justify-content: center;
            margin: 25px 0;
            color: #d32f2f;
        }
        
        .history-icon i {
            font-size: 60px;
            opacity: 0.8;
        }
        
        .footer {
            text-align: center;
            padding: 20px;
            color: #777;
            font-size: 14px;
            border-top: 1px solid #eee;
            background-color: #f9f9f9;
        }
        
        @keyframes fadeIn {
            from { opacity: 0; transform: translateY(20px); }
            to { opacity: 1; transform: translateY(0); }
        }
        
        @keyframes shake {
            0%, 100% { transform: translateX(0); }
            20%, 60% { transform: translateX(-10px); }
            40%, 80% { transform: translateX(10px); }
        }
        
        @media (max-width: 480px) {
            .header h1 {
                font-size: 22px;
            }
            
            .question-card h2 {
                font-size: 20px;
            }
            
            .input-field input {
                width: 70px;
                height: 45px;
                font-size: 20px;
            }
            
            .btn-submit {
                padding: 14px 25px;
                font-size: 17px;
            }
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="header">
            <h1>中共一大历史知识问答</h1>
            <p>回顾历史，铭记初心</p >
        </div>
        
        <div class="content">
            <div class="question-card">
                <h2>中共一大的召开时间是1921年（ ）月（ ）日</h2>
                
                <div class="history-icon">
                    <i class="fas fa-landmark"></i>
                </div>
                
                <div class="input-group">
                    <div class="input-field">
                        <label for="month">月份</label>
                        <input type="number" id="month" min="1" max="12" placeholder="月">
                    </div>
                    
                    <div class="input-field">
                        <label for="day">日期</label>
                        <input type="number" id="day" min="1" max="31" placeholder="日">
                    </div>
                </div>
                
                <button class="btn-submit" onclick="checkAnswer()">
                    <i class="fas fa-paper-plane"></i> 提交答案
                </button>
                
                <div id="errorMessage" class="error-message">
                    <i class="fas fa-exclamation-circle"></i> 答案不正确，请重新输入
                </div>
            </div>
            
            <div id="infoSection" class="info-section">
                <h3><i class="fas fa-book"></i> 中共一大简介</h3>
                <p>1921年7月23日，中国共产党第一次全国代表大会在上海召开，后转移至浙江嘉兴南湖。出席会议的代表共13人，代表全国50多名党员。</p >
                <p>大会通过了党的纲领，确立了党的名称和奋斗目标，标志着中国共产党的正式成立。这一事件是中国革命史上的重要里程碑，为中国人民的解放事业奠定了组织基础。</p >
                <p>中共一大的召开宣告了中国共产党的诞生，从此中国革命的面貌焕然一新。会议期间，代表们讨论了当时的政治形势、党的基本任务、组织原则和组织机构等问题，通过了中国共产党的第一个纲领和第一个决议。</p >
            </div>
        </div>
        
        <div class="footer">
            <p>学习历史知识 · 传承红色基因</p >
        </div>
    </div>

    <script>
        function checkAnswer() {
            const month = document.getElementById('month').value;
            const day = document.getElementById('day').value;
            const errorMessage = document.getElementById('errorMessage');
            const infoSection = document.getElementById('infoSection');
            
            // 验证答案（密码为0723，即7月23日）
            if (month === '7' && day === '23') {
                // 答案正确
                errorMessage.style.display = 'none';
                infoSection.style.display = 'block';
            } else {
                // 答案错误
                errorMessage.style.display = 'block';
                infoSection.style.display = 'none';
                
                // 添加抖动动画
                errorMessage.style.animation = 'none';
                setTimeout(() => {
                    errorMessage.style.animation = 'shake 0.5s';
                }, 10);
            }
        }
        
        // 支持按Enter键提交
        document.getElementById('day').addEventListener('keyup', function(event) {
            if (event.key === 'Enter') {
                checkAnswer();
            }
        });
    </script>
</body>
</html>